package org.september.pisces.user.permission.aop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Order(1)
@Configuration
public class UserPermissionWebMvcConfigurerAdapter implements WebMvcConfigurer, BeanPostProcessor {

//    public static SimpleUrlHandlerMapping mapping;
    
	@Autowired
	private MvInterceptor mvInterceptor;

	@Override
    public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(mvInterceptor);
    }
	
}
